package com.site.wisdom_construction.service.safetyModule;

import com.site.wisdom_construction.dao.safetyModule.SafetyDistrictDao;
import com.site.wisdom_construction.entity.safetyModule.SafetyDistrict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/11
 * @Description
 */
@Service
public class SafetyDistrictService implements SafetyDistrictDao {
    @Autowired
    private SafetyDistrictDao safetyDistrictDao;

    @Override
    public int insertSafetyDistrict(Map map) {
        return safetyDistrictDao.insertSafetyDistrict(map);
    }

    @Override
    public int deleteSafetyDistrict(Map map) {
        return safetyDistrictDao.deleteSafetyDistrict(map);
    }

    @Override
    public int updateSafetyDistrict(Map map) {
        return safetyDistrictDao.updateSafetyDistrict(map);
    }

    @Override
    public List<SafetyDistrict> findSafetyDistrictByPage(Map map) {
        return safetyDistrictDao.findSafetyDistrictByPage(map);
    }

    @Override
    public long Total(Map map) {
        return safetyDistrictDao.Total(map);
    }

    @Override
    public List<SafetyDistrict> selectSafetyDistrict(Map map) {
        return safetyDistrictDao.selectSafetyDistrict(map);
    }
}
